package www.my.myselector.ImgSelect;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import android.view.LayoutInflater;
import android.view.View;

import com.my.screenadapter.mscreen.MyScreen;
import com.my.screenadapter.R;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 张英杰 on 2016/12/30.
 */

public class ImageClickDetailActivity extends AppCompatActivity {

    private ViewPager mviewPager;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MyScreen.setBarTransparent(this);
        setContentView(R.layout.activity_imageclickdetail);
        mviewPager = (ViewPager) findViewById(R.id.viewPager);
        LayoutInflater inflater = getLayoutInflater();
        View inflate = inflater.inflate(R.layout.item_click_image, null);
        List<ImageCache> mImgList = new ArrayList<>();
        List<String> temp = new ArrayList<>();
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F9922720e0cf3d7cae2c2ac76f01fbe096b63a9fe.jpg&thumburl=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3Dd3995033718da977512f812b8051f872%2F9922720e0cf3d7cae2c2ac76f01fbe096b63a9fe.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F18d8bc3eb13533fabb31d2a6aad3fd1f40345bb6.jpg&thumburl=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3D0817bf5774094b36c4921ced93cd7c00%2F18d8bc3eb13533fabb31d2a6aad3fd1f40345bb6.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F2fdda3cc7cd98d1028ca76ab233fb80e7bec9009.jpg&thumburl=http%3A%2F%2Fb.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3Db971d788700e0cf3bff749fb3a47f23d%2F2fdda3cc7cd98d1028ca76ab233fb80e7bec9009.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fc.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fa1ec08fa513d2697c388a85356fbb2fb4316d861.jpg&thumburl=http%3A%2F%2Fc.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3D9929edcef436afc3110c38658318eb85%2Fa1ec08fa513d2697c388a85356fbb2fb4316d861.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fh.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2Fd6ca7bcb0a46f21f1186f853f4246b600c33ae04.jpg&thumburl=http%3A%2F%2Fh.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3D06f8aa22b11bb0519024b428067bda77%2Fd6ca7bcb0a46f21f1186f853f4246b600c33ae04.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fa.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F50da81cb39dbb6fdc2d699270b24ab18972b3725.jpg&thumburl=http%3A%2F%2Fa.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3D1d0182224b540923b569647ea259d1dc%2F50da81cb39dbb6fdc2d699270b24ab18972b3725.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Ff.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F14ce36d3d539b600dfdd4e3feb50352ac65cb723.jpg&thumburl=http%3A%2F%2Ff.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3Da9261abe1f950a7b6a3549c43ad0625c%2F14ce36d3d539b600dfdd4e3feb50352ac65cb723.jpg");
        temp.add("http://image.baidu.com/search/down?tn=download&ipn=dwnl&word=download&ie=utf8&fr=result&url=http%3A%2F%2Fe.hiphotos.baidu.com%2Fimage%2Fpic%2Fitem%2F0e2442a7d933c895a5aed9f3d31373f083020061.jpg&thumburl=http%3A%2F%2Fe.hiphotos.baidu.com%2Fimage%2Fh%253D200%2Fsign%3Dc8d3c58d31fa828bce239ae3cd1d41cd%2F0e2442a7d933c895a5aed9f3d31373f083020061.jpg");
        for (int i = 0; i < temp.size(); i++) {
            ImageCache cache = new ImageCache();
            cache.setFPhotoUrl(temp.get(i));
            mImgList.add(cache);
        }
        List<View> viewList = new ArrayList<>();// 将要分页显示的View装入数组中
        for (int i = 0; i < mImgList.size(); i++) {

        }
    }

}
